package com.hzlj.position.locate.common.dto.reportInspectionAutoSetting;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fz.common.base.enums.db.LikeType;
import com.fz.common.base.enums.db.QueryField;
import com.fz.common.base.enums.db.RangeType;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;

import static com.fz.common.base.core.date.DateUtils.*;

/**
 * 通信联络核查-核查-自动配置表(ReportInspectionAutoSetting)查询参数DTO
 *
 * @author lifh
 * @date 2023-03-16 09:46:01
 */
@Data
@ToString
@Accessors(chain = true)
public class ReportInspectionAutoSettingQueryParamDTO {
    /**
     * 主键
     */
    private String id;
    /**
     * 机构ID全路径
     */
    @QueryField(like = LikeType.RIGHT)
    private String jgCode;
    /**
     * 点验开始天，可为空
     */
    @QueryField(range = RangeType.GTE,value = "startDay")
    @JsonFormat(locale = LOCALE, timezone = TIME_ZONE, pattern = DATE_SHORT_FORMAT)
    private Date startDay;
    /**
     * 点验结束天，可为空
     */
    @QueryField(range = RangeType.LTE,value = "endDay")
    @JsonFormat(locale = LOCALE, timezone = TIME_ZONE, pattern = DATE_SHORT_FORMAT)
    private Date endDay;

    /**
     * 查询哪一天
     */
    @QueryField(range = RangeType.LTE,value = "startDay")
    @QueryField(range = RangeType.GTE,value = "endDay")
    @JsonFormat(locale = LOCALE, timezone = TIME_ZONE, pattern = DATE_SHORT_FORMAT)
    private Date day;
}
